package com.zeny.express.framework.core;

import java.util.Date;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

public class Person {

	@NotNull(message = "{validation.person.name}")
	private String name;

	@NotNull(message = "{validation.person.age}")
	@Min(value = 1)
	@Max(value = 150, message = "{validation.person.age}")
	private int age;

	@NotNull
	private Date birthDate;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public Date getBirthDate() {
		return birthDate;
	}

	public void setBirthDate(Date birthDate) {
		this.birthDate = birthDate;
	}

}
